Technician reports

I’ve been asked to do something that can not end well, but…

My job wants to pull data from RT so as to list either the number of 

comments (not tickets) or the amount of time directly associated with
each technician. For example, my desktop tech might own a ticket, but
I add two comments (5 minutes and 15 minutes) and a reply (10 minutes)
to it. I need to run a search that gives me credit for the 30 minutes
that I put into that ticket and others.

Is there a way to do that?