Period days

When do you start count as day one? When it's brown or heavy? And when do you end the count? When it's brown or after?