<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Problem Set 01
1. COUNTING VOWELS
Step1:  2. COUNTING BOBS
<ASSISTANT_TASK:>
Python Code:
s= 'wordsmith'
vowels = {'a','e','i','o','u'}
count = 0
for char in s:
    if char in vowels:
        count+=1
print "Number of vowels: " + str(count)
Explanation: Problem Set 01
1. COUNTING VOWELS
End of explanation
s = 'azcbobobegghakl'
pattern = 'bob'
count =0
for position in range(0,len(s)):
    if s[position:position+3]==pattern:
        count+=1
print count
Explanation: 2. COUNTING BOBS
End of explanation
<END_TASK>