Most students who were accepted at Stanford have 6 to 12 AP classes. As per my advice, your competency factor is to have good scores in AP classes rather than getting a number of classes.