title: Request counter for individual all the web service api
body: <p>I have created web services for my project, using rest and some of using only servlet.</p>
  
  <p>I want to create <code>request counter</code> for <code>individual</code> all the <code>web service api</code> to analyse <code>individual request ratio</code> per hour,per day and many more.</p>
  
  <p>I don't want to put counter for every api. Can I achieve it by using Servlet Listner or Servlet Filter? yes then how??? Small demo would be great if possible.</p>
  
  <p>Note : I know that I can analyse most of the details from access log.</p>