How do I collect daily login statistics I am trying to add a contest to my website which will be based on how frequently they login into my website. Each user will be assigned one point per day irrespective of how many times the login in a day. A winner will be picked every month, at random, based on the number of times they have logged in. Hence the more times you login, the more odds you have of winning. 

Any ideas on what would be the best approach? Would I have to build a module from scratch? Modify a current module? Any help would be appreciated.

Thanks,
G
I would say use the User Points module along with the User Points Login add-on module to handle to recording of points for users logging in.

Then you can use the Views module to build reports for yourself to see which users have the most points for a given period.

It would also be possible to use the Rules module to automatically email you a report of the winners at the end of every month and then reset all user points to zero (I'm making an assumption that there is a rules action you could use to remove existing user points).