fix tsmh.py for count is null.
Merge pull request #5 from lanfon72/master

fix tsmh.py for count is null.