The salary number is really not that relevant. We're not getting under the cap, and Pierce has and will deserve every penny he's getting.
Four years with a team option for the fourth is absolutely perfect, especially if the contract starts in the vicinity of $10,000,000, as I imagine it would. Pierce may be looking to retire by that time, and his contract may end up being a very valuable trading chip (think Rasheed Wallace on steroids).