Charm counting in b decays