At a strange party, each person knew exactly $22$ others.
For any pair of people $X$ and $Y$ who knew each other, there was no other person at the party that they both knew.
For any pair of people $X$ and $Y$ who did not know one another, there were exactly 6 other people that they both knew.
How many people were at the party?