You want only the counts, not the data in the files?
Use a Script Task to get the counts
var rowCount = File.ReadLines(file).Count();
and write that out to a file of your choice ... all done using a Script Task.
If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.