Handle larger word counts with Long instead of Int.