decode 'count', hash count bytes, and fixed critical typo at verification