Welcome to the Ranch
You had the code tags wrong, but I have corrected that for you. Don't post the same post twice; I have deleted the duplicate.
Where are you searching the String? I can see some file reading code which appears to be in a class called Search, but that won't compile. I think you have a line missing. You are also counting occurrences in an array, but that is obviously something different. Do you know how to use the methods of the String class to find an included substring? Do you know how to work out the length of that substring? Do you know how to use another String method to find the remainder of the String as a substring?
What are you going to do it the search text is not found, or there are no quote marks?