Counting the number of times a word is displayed and then inputting this number into a new field

Counting the number of times a word is displayed and then inputting this number into a new field

I am trying to get my application to count the total occurences in a view and then get the result into a field in another form.  For example, one form has a field that will be used to display the total number of times that the word "Human Resources" is input into a field in a separate form or view.  I need to calculate the totals so I can then create a chart with the total number of occurrances.  Any sample code ideas would be appreciated.  Thanks!