#!/usr/bin/python

s= input('--> ')
bobcount=0
count=0

#while count < (len(s) - 3):
for count in range(len(s)):
    if s[count:count+3] == 'bob': 
        bobcount += 1
        count +=2
    else:
        continue
        count +=1

print("Number of bob:" + str(bobcount))

ffe687cbae9ce666954163459e74e2ed7bce2359
<mask token>

<mask token>
for count in range(len(s)):
    if s[count:count + 3] == 'bob':
        bobcount += 1
        count += 2
    else:
        continue
        count += 1
print('Number of bob:' + str(bobcount))

s = input('--> ')
bobcount = 0
count = 0
for count in range(len(s)):
    if s[count:count + 3] == 'bob':
        bobcount += 1
        count += 2
    else:
        continue
        count += 1
print('Number of bob:' + str(bobcount))

#!/usr/bin/python

s= input('--> ')
bobcount=0
count=0

#while count < (len(s) - 3):
for count in range(len(s)):
    if s[count:count+3] == 'bob': 
        bobcount += 1
        count +=2
    else:
        continue
        count +=1

print("Number of bob:" + str(bobcount))
