How much do the act science and writing sections count?

I am a rising senior and I took the act in june. I got 36 E 36 M 34 R 31 S and 23 W. Quite Frankly, my writing and science scores are terrible compared to the other scores. However, I’m not sure how much they consider these scores. I heard mainly english and math are looked at. Should I retake?

http://admission.stanford.edu/application/freshman/testing.html