Why does this counter not work

How many errors can you see in one line of code?