options removed (all counts are collected at once)
added test for writing data into a file