correctly display menu counts on all pages