# -*- coding: utf-8 -*-
"""
Created on Tue Sep 29 12:30:10 2020

@author: Sim
"""
# wordcount1.py
f = open("D:/HWP/강의자료/파이썬/codes/BTS_Dynamite_lyrics.txt", "r")
lyrics = f.readlines()
f.close()

allwords = ""

for line in lyrics:
    allwords = allwords + line.strip() 

counter = allwords.upper().count("DYNAMITE")
print (counter)

