I prefer counting up than counting elements in an array.  Particularly as something could be added at a later date that starts removing elements from the array, then the counts won't match.   Revert please.