test count random number times