Amherst Town Court ranked first locally  and fourth of 1,219 town and village courts in the state  for the $3 million it collected in 2015, the last year for which data is available from the state Comptroller's Office.