Does spending 4 years getting an associates degree count as obtaining 4 years of college credit?

I spent 4-5 years getting an associates degree and a transfer certificate at my last institution as a mix of a full-time and part-time student. Does this count as 4 years of college credits in relation to education tax credits?