A script to keep track of how many users a user has referred.