At a women's doubles tennis tournament, there were three teams of  two women. After the tournament, each woman shook hands once with each of the other players except her partner. What is the number of handshakes that occurred?

Let's think step by step and output the final answer within \boxed{}.
user