Correct Aperiod counting