Print record count of a file using shell script

HI,

I need to print the record count of a file using shell script.

If the record count of a file excluding header and trailer record if greater than zero then print 'Record count of a file is xxxx records'.

If the record count is zero print 'zero records'

Thanks
Mahendra

awk 'END{if (NR-2 == 0){print "Zero records"} else {print "Record count: " NR-2}}' file