Good idea! Is probably worth looking into. It's possible to do counts with group by in Django ORM.