inspired by The Best Way To Count.