IQVIA interview question

How to count the number of elements in an array?