Count Number Of Elements In A Vector R