modifications to POS_Count.py