you could refactor `count++` to remove the duplicate code
you could refactor
count++to remove the duplicate code