chaged couter

now there is no class counter, just pointer to number