Create countRecords

This function will count the number of records in any table or query. It is faster than Dcount, and it is easier to use. A WHERE parameter can be easily added if wanted.