diff --git a/smash/web/api_views/appointment.py b/smash/web/api_views/appointment.py
index a31bb9f13dc84481e4c782a0d7c57f518e4cdeac..091c58016998d537837825bd990b1f7eb7a6ce21 100644
--- a/smash/web/api_views/appointment.py
+++ b/smash/web/api_views/appointment.py
@@ -59,7 +59,7 @@ def appointments(request, type):
 
         appointments = sliced_subjects
 
-        count_filtered = sliced_subjects.count()
+        count_filtered = all_appointments.count()
 
         data = []
         for appointment in appointments: