Make number of events configurable

Signed-off-by: Martin Pahl <pahl@tnt.uni-hannover.de>