Does it count as 3 years of foreign language if taken senior year?

Rising senior here.
I previously took spanish 1 and 2 my freshman and sophomore years of high school. I decided to not take spanish 3 my junior year for reasons. I am taking spanish 3 as a senior. Will colleges still look at this as 3 years of a foreign language if they do not place heavy emphasis on senior year? I am really looking towards a UC (UCLA in particular lol), so my question is geared more towards how a UC would see this.

Thank you.

Courses taken senior year do count toward the usual required or recommended college-prep course work that colleges expect applicants to have. Obviously, you need to complete the reported in progress senior year courses with high enough grades, because colleges may otherwise rescind admission.

Courses taken senior year are considered. However, I have heard that some colleges require, or would like to see, three CONSECUTIVE years of a foreign language.

@wattba12 and anyone else who has questions about foreign language classes. My son did not take a foreign language his junior year as there was a scheduling conflict. He had to choose between AP Music Theory and French. He chose AP Music Theory as it was only offered at his school every other year. He did take French III his senior year of HS. This did not affect his admission to college as he is currently at an Ivy. BTW - At university, he studied French III & IV his freshman year, no french his sophomore year, and studied in France both in the summer after his sophomore year and fall term his junior year.

It is fine. But if you had a scheduling conflict junior year that caused you to not take Spanish that year you could ask your guidance counselor to note it in his/her recommendation.