Fixed example for checking number of elements