last

 $

pop


->last
()

Returns the highest message number.