Counting Handshakes

Level 7●○○○○ Warm-up~2 min

Problem

At a party of nn people, everyone shakes hands with everyone else exactly once. How many handshakes occur in total?