Test count & count_if with thrust::seq in __device__ code.