Porting simple statistics gathering tool