When does your period cycle technically begin?

When counting and recording your cycle does it start when you start spotting or start having a heavy red flow?