Fixed the counter