Hi,
When you open your file:
The syntax for this is, open(filename[,mode])
If mode is omitted, it will default to read-only. This will raise an exception if you try to write to it.
Try:
fh = open("count.txt","w+")
And remember for next time, it helps to post the error message