Count documents matching a filter
