Calculate the sum of statuses for each user

Hi Dan,

Please review this little patch that sum up the number of each status occurrence for each user, and display it at the bottom of the attendance table.

Nadav :-)