The number of quarters were four less than the square of the number of dimes. Write an algebraic expression that models the number of quarters with respect to the number of dimes.