A baker is selling pies his first customer buys 1/2 of all the pies plus 1/2 of a pie. His second customer then buys 1/2 of the pies plus 1/2 of a pie the last customer buys 1/2 of the pies plus 1/2 pie. he has no more pies. how many did he start with?