Simply echoing what's already been posted but the 5.4 manual on capacities says 5.7 quarts with new filter. (Why anyone would or does change oil and not the filter at the same does not compute.
) I fill the filter first letting any trapped air bubble up until its about full, rub a bit of oil on the gasket to aid its sealing.
Making sure the old gasket has been removed carefully place the filled filter in place and tighten---I use a wrench to make sure its snug. Honestly most manufacturers say hand tight is more than sufficient but I'm not all that sure.
Oh BTW I buy my FL820S Motorcraft from Amazon or eBay by the dozen, pay just about $3.5 each, free shipping most times. Oil of choice is Valvoline MaxLife in the 5 quart jugs, Amazon on occasion running a special of $17.87 each---I'll buy 6 twice for a total of 12 5 qt jugs spaced out over a few days as they do limit purchase of these at that price. Of course if you're a Prime member that price is good year round.
BTW I current have 3 E-Series, change oil every 3K to 4K miles---it pays to buy in bulk!