California vehicle registration fee

I paid my 2015 registration in 2015, but also paid my 2016 registration in 2015. Does it count the year that I paid it, or the year of the registration? (should I count both payments made in 2015?)