period and counter