How long is labor?

How do you know how long you were in labor? Do you count from when contractions started or how dialated?