compile error, can't find the fault...

if count = 0;
if count == 2)

?

Can somebody see what I am overlooking?

Mainly, you're overlooking posting your code.

By the way, if, for example, you know that count is 8, and you increment it, there's no need to test to see if it is9.