docs: def GetEntries(self, cut=None, weighted_cut=None, weighted=False):
          """
          Get the number of (weighted) entries in the Tree
  
          Parameters
          ----------
          cut : str or rootpy.tree.cut.Cut, optional (default=None)
              Only entries passing this cut will be included in the count
  
          weighted_cut : str or rootpy.tree.cut.Cut, optional (default=None)
              Apply a weighted selection and determine the weighted number of
              entries.
  
          weighted : bool, optional (default=False)
              Multiply the number of (weighted) entries by the Tree weight.
          """
          if weighted_cut:
              hist = Hist(1, -1, 2)
              branch = self.GetListOfBranches()[0].GetName()
              weight = self.GetWeight()
              self.SetWeight(1)
              self.Draw('{0}=={1}>>{2}'.format(branch, branch, hist.GetName()),
                        weighted_cut * cut)
              self.SetWeight(weight)
              entries = hist.Integral()
          elif cut:
              entries = super(BaseTree, self).GetEntries(str(cut))
          else:
              entries = super(BaseTree, self).GetEntries()
          if weighted:
              entries *= self.GetWeight()
          return entries