count the number of days online