- changed reportCounts to use outstream
- added main class