# test that we can check the count of an empty array

global agg

probe begin
{
	agg <<< 444
	agg <<< 999
	printf("count=%d\n", @count(agg))
	if (@count(agg) > 0) {
		printf("sum=%d\n", @sum(agg))
        	printf("min=%d\n", @min(agg))
	        printf("max=%d\n", @max(agg))
        	printf("avg=%d\n", @avg(agg))
        	printf("variance=%d\n", @variance(agg, 7))
	        print(@hist_linear(agg, 0, 1500, 50))
	}
	exit()
}
