The number of homeomorphically irreducible trees, and other species