JDocumentHTML::countModules

Count the modules based on the given condition