non c'è.
ti scorri tutte le lettere leggendole con fscanf, quando incontri '\n' incrementi un contatore.