Counter added

Counter added from github