Don't count period if it is nonStop.

Do not count otherwise countPeriod will grow very large.