Implemented incrementing the counter