If you want a more compact output, you could do something like this:
- in your switch you only print a single character e.g., +-space
- you add a counter and count the events
- every 50 events you print the counter and a new line
The result would look something like this:
+++- + -+ - ++-+ + +--++ -+ + ++-- -++- -- - 5
+ -+- - + +- - ---++-+ -++ + +-+ +++- - - + - 6
+ - +- ++ +++---- +-++++ - ++ + +- + + ---- +-++ 13
++ +-+ ++ ++++- - --++-+-+-- --+ - --+ + - 15
-+- -- -- --+-+ ----+-+--++-+ --+++- ++- + - - 6