Fixed deserilization.  Added count
Merge pull request #3 from Colegreen/master

Fixed deserilization.  Added count