KS4002
A variable is updated before it has a value. $count += 1 needs count to exist. Give it a starting value first: $count = 0.
A variable is updated before it has a value. $count += 1 needs count to exist. Give it a starting value first: $count = 0.