I forgot to convert the input how_many to an int is why it didn't work.