Need to restore countModules with embedded joomla classes