This assumes that you have a value in A1, and this formula is being entered into cell A2. Adjust accordingly.
Basically, what this does is look at the value in the cell above it. If today is the same date as the cell above, it will add one to the counter at the end of the counter. Otherwise, it will start over at 1 again. So the result would look something like this: