A couple decides to have children until a daughter is born. Assume the probability of a daughter is 0.5. What is the expected number of children of this couple? Use the formula as well as simulation for this problem.