Remove unused function tep_count_modules