I am writing a code for svn tracking system.I want to count the number of comments line has put by developer.

is there a php function to get number of lines between two characters?
I want to get lines count between /\* and \*/

thanks in advance.