Test number of elements