modifying getCounter API