Estimation of the mean and the initial probabilities of a branching process