Added counter for producing graphs in R for www server