count the number of all hopping sequences.