def pre_check(self, data):
sentences = len(re.findall('<STR_LIT>', data)) or <NUM_LIT:1><EOL>chars = len(data) - len(re.findall('<STR_LIT>', data))<EOL>num_words = len(re.findall('<STR_LIT>', data))<EOL>data = re.split('<STR_LIT>', data)<EOL>return data, sentences, chars, num_words<EOL>
Count chars, words and sentences in the text.