in reply to Maintain a certain number of elements inside an array?

I'm suprised it's not been mentioned. Simply:

$#topten=9