What size engine does the 2011 Subaru Legacy have?

The 2011 Subaru Legacy has a flat 4 engine.