Design and implement an algorithm that will efficiently search a given text for a particular keyword or pattern and record the number of times the keyword or pattern is found.
Design a main program that calls the procedure quick search. The main program should be able to read and search successive blocks of text.