The counties with other functions are mostly in New Hampshire and Vermont .
In Connecticut , Rhode Island and 7 out of 14 counties in Massachusetts , in fact , counties only exist as map divisions and have no legal functions ; in the other three states , counties are primarily judicial districts , with other functions primarily in New Hampshire and Vermont . In all six , towns perform functions that in most states would be county functions .