Cycle help

Ny
When do you start counting CD's? At the first sign of spotting or when you actually have red flow? And what if you start SUPER late at night like 11:30 pm? Do you count that night as CD1 or wait until the next day?? Help!!