Try using awk . It is best suited for well formatted csv files .
awk -F, 'END {printf "Number of Rows : %s\nNumber of Columns = %s\n", NR, NF}' Test.csv
-F, indicates how the field separator is in the csv file.
At the end of the file traversal, NR and NF have values ββfor the number of rows and columns, respectively
Another quick and dirty approach would be like
# Number of Rows cat Test.csv | wc -l
source share