add count_records tool