What counts as four years of college credit?

I have an AA degree, but I have also attended a community  college for over 6 years (mostly taking electives and theater classes and not working towards a degree.) Does this count as 4 years of college credit?