Only two, maybe three if I'm really taking my time and talking to my wife while I'm doing the change.
The quality of work performed is inversely proportional to the amount of beer consumed and there is a positive correlation between beers consumed and the amount of damage done.
IOW, lots of beer is always detrimental to the sucessful completion of any task, while a couple might make the task more enjoyable.
So, if you want no filter leaks, forgotten drain plug gaskets or big mess on the ground, drink less beer.
If you already have one or all of the above, a few more beers might help you get over the extra work you'll need to do.
A little cussing never hurts either.