How can I easily calculate all of my sections' total number of lines of code?

I teach computers and would like to have a bulletin showing the total number of lines of code written in all sections. Is there a way to see this without adding up all of the individual students?