in reply to Number of elements in array

I have tried the obvious, however I get strange numbers back.

Such as?

Suggestion for lines on investigation welcomed.

trace, Dumper, the basics :)