OS X:
Only return the number of actual elements in the array.