add counter

Signed-off-by: Shrinath M <shrinath_m2@yahoo.co.in>