Fixed bug in counting allographs of different hands