I\'m making a search function for my website, which finds relevant results from a database. I\'m looking for a way to count occurrences of a word, but I need to ensure that
It depends on what DBMS you are using, some allow writing UDFs that could do this.