Searching the character count from string

word = raw_input('Enter the String:')
char = raw_input('Enter the Character to search:')

count = 0
for letter in word:
 if letter == char:
  count = count + 1
print 'Number of times repeated:', count

No comments: