# 10
with open("hightemp.txt") as f:
    print(f.read().count("\n"))
    
# 確認
#  wc -l hightemp.txt
#        24 hightemp.txt
b8d559ae9f0af962ebd3215621b53dd46306651e
<mask token>

with open('hightemp.txt') as f:
    print(f.read().count('\n'))

# 10
with open("hightemp.txt") as f:
    print(f.read().count("\n"))
    
# 確認
#  wc -l hightemp.txt
#        24 hightemp.txt