create module to test with mocha and count records in json file