changed name to period counter
added reset method