I run the following code and I got what I want
a = Table[
EuclideanDistance[RandomVariate[UniformDistribution[]],
RandomVariate[UniformDistribution[]]], 1000];
Length[Select[a, # < 0.5 &]]
I don't know why when I run
Count[a,# < 0.5 &]
I got 0, shouldn't Count[a,# < 0.5 &]=Length[Select[a, # < 0.5 &]]?