stream_test.pl: count an averages for I/Q