Moved the counting queries for the menu from templatetags to models (fmsuser and organisationentity)