I want to count the number of times \n appears in string (Student Copy)\nfor\nspecial school\n...Shaping the Future\n408,) before the phrase Shaping the Future. Is there a way to do it without splitting the string?
Output in this case should be 3
 
    