make integration test pass

* fix number of threads in event loop
* generalize counter cluster