How to count the number of unique day

Excuse me, I have been trying to determine the numbers of samples in one day, I did not reach to plot DatetimeIndex and count the samples in one single day. Can you help me? Thank you

You can count with value_counts() like so:

pd.DataFrame(data.index.date).value_counts()