use QuerySet.count instead of len