adding programattic counter