global $XF $total_users= $XF->getBoardTotalsCounter();
Anyway ... I'm wanting to remove the global $XF, and copied XenForo_Model_Counters code and simply call the XenForo code directly. So, I stripped out the getBoardTotalsCounter from the XenWord class file and called it as below.
Fatal Error: Call to undefined method XenWordXFStats::getModelFromCache()
How do I get around this ?