Rafael counted a total of 40 white cars and yellow cars. There were 9 times as many white cars as yellow cars. How many white cars did Rafael count?