Added new method to get the count number of matching documents in the db to a query.

Example: http://localhost/collections/Person/count?query={"name":{"$regex":".a"}}