added the total_metadata method along with tests to ensure the method is working
added the total_dataset method and tests to ensure the method works as expected