get just the number of lines from wc in bash

wc -l < file_name

wc : Print newline, word, and byte counts. The -l option print only the line counts.