Any reason this can't be just `def alternate_count` and memoize the response?