add some stuff in filecounter.py