Casey Anthony sentenced to four years