Use dedicated counted for storing a number of calls

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>