Can I claim the American Opportunity Credit if I've been in community college for 5 years part-time and haven't completed my degree?

The credit says I can claim it if I havent completed 4 years of school but since I've been part time I haven't completed 4 years worth of credit hours.