Counting The Number Of Columns In R