Qual'è la funzione che mi restituisce il totale dei record contenuti in un txt?

grazie.