Transmission trees on a known pathogen phylogeny: enumeration and sampling