Added all counters for the main forum view and some necessary helper functions