Proficiency level always matters. Number of years taken may matter, depending on the college.
It does look like the student has taken multiple of the same level Spanish courses (AP 5 seems to be like IB 7 to some colleges with respect to Spanish placement), which could look like grade grubbing.