Cycle days question

Obviously we start counting from day one when AF arrives but when do you stop counting after you stop spotting brown??

Also how long is your period ??