Summer Course at UC Berkeley and application questions in general

If a high schooler takes CS 70 (offered by EECS) over the summer before 12th grade, then does it count towards UC GPA calculation for their admission? I understand CS 70 is a challenging course, so if it counts for one semester of high school course or one year of high school? Any insight would be greatly appreciated.