Update encoding.py

Counter is now also showed in the 'state' messages.
Merge pull request #7 from wmiltenburg/patch-1

Include the counter in more messages