Implement counts for h, j, k, l.

Need to generalize a bit to make it work for everything.