Obtenha linhas de contagem em arquivo usando o gato

wc -l myfile
Sachin