How to write a function that will return the number of elements in any 1D array regardless of its data type ?
So far I have devised the following function:
<