Refactored observations count to a custom queryset.