There were two quacks in front of a quack, two quacks behind a quack, and one quack in the middle. How many quacks were there in total?