Fixed count key bug and incorrect reset of counts