text: def count_substring(string, sub_string):
      c=0
      
      if string==sub_string:
          c+=1   
      return
  
  if __name__ == '__main__':
      string = input().strip()
      sub_string = input().strip()
      
      count = count_substring(string, sub_string)
      print(count)