code: def _compute_counts_from_model(model, bexpcube):
          
          data = model.data * bexpcube.data
          ebins = model.hpx.ebins
          ratio = ebins[1:] / ebins[0:-1]
          half_log_ratio = np.log(ratio) / 2.
          int_map = ((data[0:-1].T * ebins[0:-1]) + (data[1:].T * ebins[1:])) * half_log_ratio
          return HpxMap(int_map.T, model.hpx)
docs: Make the counts maps from teh mdoe