allow caching options to be specified for counting services
Added a mechanism to specify caching options for the count services. This will get used in the Geo project, allowing certain cached values to be more quickly expired from the cache of a secondary Geo node.
Related issue https://gitlab.com/gitlab-org/gitlab-ee/issues/4070