title: Histogram of events with different durations (Given their start and end times)
body: <p>I have a Numpy array <code>A</code> of shape <code>nX2</code>, representing <code>n</code> different events. The first column holds the starting times of the events, and the second holds the respective durations of each event.</p>
  
  <p>For some time duration <code>[0, T]</code> and <code>N</code> different equidistant time points, I would like a count of how many events are ongoing at each time point. (i.e. an integer array of length <code>N</code>, each entry has the number of events that started before that time and lasted till after)</p>
  
  <p>What is the most efficient way to achieve this in Python?</p>
  
  <p>*I know what I'm asking for isn't really a histogram. If someone has a better term feel free to edit the title</p>