assert the number of the given array