Community's Joel McHale has signed on to play the lead male role in New Regency's comedy What's Your Number?, starring Anna Faris.

According to The Hollywood Reporter, Mark Mylod is directing What's Your Number?, which centers on a woman (Faris) who treks through her sexual past to find Mr. Right, exploring the idea of sexual quotas and whether such numbers matter. Jennifer Crittenden and Gabrielle Allan wrote the script based on Karyn Bosnak's book.

McHale is playing Faris' mildly charming boss, whom she accidentally sleeps with, causing her to begin a wild goose chase to find the one that got away.

What's Your Number? begins production the end of the month.