Implementing simple hash instead of number counting (refs #12)