move code from EventCount.cpp to EventCount.hpp
add duration end condition
add concentration measurement