refactored rating_count method & _ratings partial