Fixed an API error when using count with the mentions endpoint.