I need to count the repeats of search keyword in searched fields.
For example, if i have table wp_posts like this
ID post _content post_title
-----------------------------------------------
1 page page page page
2 page test page
3 page foo test
I want result like if any one search for page
ID total count
1 4
1 2
2 1
try this