declare counter with 0