SCHEMA:
CREATE TABLE table_name_4 (rank VARCHAR, notes VARCHAR, country VARCHAR)
USER:
What's Brazil's rank when it has notes of R?

QUERY:
SELECT COUNT(rank) FROM table_name_4 WHERE notes = "r" AND country = "brazil"