Got a little DB going. How to count how many entries?

Each entry ends with a newline (\n) and is written to a txt file. How can I count how many entries there are? I am going to count them and then sort them.
Count how many \n there are + 1?
Yeah now I feel dumb. I figured it out simple enough, I'm just really out of practice and too quick to ask for help. Thanks though.

(I just used strtok)
Topic archived. No new replies allowed.