For the UCLA, the Earth Science in 8th grade will not count towards the a-g course requirements. I would take one more science class such as AP Environmental, just to be safe even if you are not leaning towards a STEM major.
You want to go above and beyond in the a-g courses to be competitive for UCLA.