Write a program to count the occurrence of following C keywords in a file and calculate the sum?

1.int
2.char
3.static
4.struct
5.union
6.return