a simple stdin consuming histogram generator