Add filter_having_keys to measures Count functionality