Fremont ar en kommun ( town ) i Rockingham County i delstaten New Hampshire , USA med 4 283 invanare ( 2010 ).