Added JS to populate the a record count