See Methods section of Bloom and Neher, in the subsection called "Counting mutations along the phylogenetic tree".