Change print(count, end='') to print(i + 1, end='') and remove count . Just make sure you understand why it works.
stackoverflow.com