If the porch is free-standing, you will need four posts. Two posts and a ledger support beam should suffice if it attaches to the house.