add a count() method to Handler to count the number of times a request is handled