Replaced `len()` in paginator to count() because mongoengine removed len()