For this sort of thing do
```
for x, code in enumerate('bhilq'):
```
That will get you the count starting at x = 0.