Implementing a humanize counting algorithm