Counting the number of elements with the values of x in a vector Counting the number of elements with the values of x in a vector r r