wc is also useful, mostly as "wc -l". If you keep data in line oriented, human readable form, "wc -l" counts data items.