Simple little script for iChat

Wondered whether someone skilled in here might be able to put together a script (automator or applescript) that counts the lines in a set of iChat files. I’m looking for the average number of lines I use in a message over a period of time.

Would seem like a relatively simple thing to do, but I don’t know how.