Tiling a square

Suppose we tile a square with non-overlapping pieces. How many sub-squares do we need? Suppose we'd like a decorative pattern like the one shown below. How many of each sub-type do we need?

n =

Specifically, in terms of n, how many

do we need?