Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
CREATE TABLE table (r VARCHAR, position VARCHAR, AM VARCHAR, league VARCHAR)
### Question:
If the position is AM and the league is larger than 7.0, what is the total R number?
### Answer:
SELECT COUNT(r) FROM table WHERE position = AM AND league > 7.0