There are a variety of ways to get a count of records.
One approach would be to run the COUNT command on your data table (note - not 'database'):
SELECT MyTable
COUNT docdate2 TO mnRecCount WHERE BETWEEN(docdate2, CTOD("01/01/2000"), CTOD("02/15/2008"))
You should spend some time with the VFP Help window learning about the command & functions:
COUNT
CTOD()
BETWEEN()
You can also consider using a SQL Query to get your count of records.
SELECT COUNT(docdate2) FROM MyTable WHERE BETWEEN(docdate2, CTOD("01/01/2000"), CTOD("02/15/2008")) INTO CURSOR RecCnt
Good Luck