Education

Should I get the American Opportunity credit if it was still my 4th year of college in the spring?  Or is it related to how many years it’s been claimed on taxes?  When I was still a dependent my parents never received the credit so I couldn’t be because we claimed it too many times