Basically, what you are looking for is the Windows equivalent of Unix's
egrep ";" *.cpp *.h | wc -l
This will give a rough count. It includes statements that have been commented out (hopefully very few), and semi-colons in comments (again, as we are not even taught when to use it except when you get an English teacher who is fussy about punctuation, there are very few of these). Side issue: there was a Colombo program on the other night where the bad guy used a semi-colon which Colombo said only a "well educated" person would use in the correct place.
You'd probably have to write a program to count the number of linefeeds in stdin. That should get round the wc -l. Find may work in place of egrep but there are so many variants it really depends on which version of windows you are using.