Merge remote branch 'origin/feature/7703_new_api'
Re #7845. Removing gcc compiler warning.

This has nothing to do with the ticket, but it is really annoying me.
Re #7845. Adding branch to get number of events in the box.
Re #7845. Fixing unit test.
Merge branch 'feature/7845_bincount' into develop