You just need to change the location of fxserver.log on your machine (usually on txdata/default/logs/fxserver.log) and the output location. Then run cmd and write: python CountMain.py
From this:
To this:
Instead of reading bunch of trash, run the code and get all the information you need.