When you use count = count + 3 or count = count + 9 instead of count = count + 1, the value of count will never be 100, and hence it enters an infinite loop.
You could use the following code for your condition to work
while count < 100:
Now the loop will terminate when count >= 100.