It depends from c1 and c2. Since you pass c1 equal to 1 and c2 equal to -1, the instruction in your case becomes
TMath::Abs (1* name1->GetEntries() + (-1)*name2->GetEntries() )
So your expected number of entries should be equal to the absolute value of the entries of name1 minus the entries of name2.