I have written the following block:

```
number = 12

def checkio(number):
    count = 0
    for n in bin(number):
         print n
         if n == 1:
             count += 1
    print count

checkio(number)

```

The output I get is: 

```
0
0
b
0
1
0
1
0
0
0
0
0

```

I can't understand why I'm able to iterate through `n` in the binary number and `print` it, but my `if` won't work correctly and won't add to my `count` variable.

Why does this happen?