Fix get login user counts

There are two fixes in this request.

One squashes a bug I introduced in updateResCount.

The other is a fix for getLoginUserCount - I had some strange behavior where it was no longer sending the array in the manner that it should.  There was a string at the end of the array instead of all integers.

I streamlined the processing dramatically since you had such a nice array structure, I was able to use the ResidentYear value from ResidentCounts as the returnArray index :-)

This does require an always updated ResidentCounts.  I've changed my ruby script to call updateResCounts.php each time it runs (every hour).

I did NOT change tools/updateExam.php.  Eventually we should move the code from updateResCounts.php into capricornLib.php and create a command line script to execute it.  That way it could be run from crontab (linux) or Schedule Tasks (windows) without exposing a security (DOS) risk.