in reply to Counting iterations of 1 and 0

I need help with this pseudo-code...

What kind of help with your pseudo-code do you need?