### Check duplicate issues. - [x] Checked for duplicates ### Description When setting bin contents of a histogram using ROOT's UHI, the number of entries ([TH1::GetEntries()](https://root.cern.ch/doc/master/classTH1.html#a9b9fc72d52be07372979ab74d1365fcf)) is calculated incorrectly. ### Reproducer ```Python import ROOT h = ROOT.TH1D("h", "h", 10, 0, 1) h[...] = 1. h.Print() ``` Expected ``` TH1.Print Name = h, Entries= 10, Total sum= 10 ``` Got ``` TH1.Print Name = h, Entries= 20, Total sum= 10 ``` ### ROOT version 6.36 ### Installation method al ### Operating system al ### Additional context _No response_