In a soccer league with four teams, each team played four games with every other team. Each team received 3 points for a win, 1 point for a tie, and no points for a loss. After all the games, the point tallies were as follows: Team A won 22 points, team B won 19 points, team C won 14 points, and team D won 12 points. How many games ended in a tie?