Added handlers to only count the number of records

I have just creating this pull request to show you the idea of the CountHandler. Do not hesitate to reject it!