There are so many things wrong with that code its not even funny...
First off counter is of type static int. not unsigned int like the article says. Secondly j is decremented, j isn't even defined.
They are however right that it most likely will crash due to an overflow problem. Though this is not necessarily true.