import os import re from collections import Counter