How To Count The Number Of Entries In R