Adding total count for user and project in template