file_path = r'C:\Users\TAVASI-3\Desktop\init_mahdi\project\dataParsers\data\FLC\cleaned\temp.json' with open(file_path, "r", encoding="utf-8") as f: text = f.read() import re matches = re.findall(r'persian', text) print("تعداد دقیق:", len(matches))