Newton is a city in Middlesex County, Massachusetts.