Create stat.py

simple statistics script