added getUnreadMessageCount to the twig extension