Since there are films post-2009, putting the 2010s in, here goeth:
10 isn't fair enough:
40 with some honorable mentions
8.She's the Man (Amanda Bynes, who was in the above Hairspray, should have done more solo films)
9.Sex and the City 2
12.The 41-Year Old Virgin
13.I Now Pronounce you Chuck and Larry (got to get Sandler in there)
14.Anger Management (another Sandler one)
15.What Happens in Vegas (Ashton and Cameron!)
16.La La Land
17.Valentine's Day (Garry Marshal's last big hit, and third to last next to New Year's Day and Mother's Day_
18.Sex and the City 1
19.Toy Story 3
21.The 41 year old virgin who knocked up Sarah Marshall and felt Superbad about it (and yes IT IS a spoof that reall saw the light of day post theatre but very funny)
22.The Bronze (another with relatively brief life in the theatres, certainly noty even a "hit" but a major favorite with huge visibity since its August 2016 DVD/Amazon etc. availablity, with "Bernadette" aka Melissa Rauch and "Edge of Seventeen" and "Split"'s Haley Lu Richardson.Speaking of Edge of Seventeen........)
23.Edge of Seventeen (see?)
25.Funny People (Adam Sandler and Judd Apatow made this a Columbia/Universal actually Universal/Columbia coporduction)
26.All About Steve (Sandra Bullock as stalker/crossword puzzle constructor)
32.Pitch Perfect 1
33.Pitch Perfect 2
34.The Heat (That Sandra Bullock/Melissa McCarthy one)
35-37. The three Night at the Musuem movies.
39.Mr.Magorium's Wonder Emporium
40.Bring it On
Not neccesarly in any order of importance...La La Land's comedy was a bit light but I sneaked it in, fab flick.
Honorable mention, the American Pie movies, Scary Movie sequels, even Disaster Movie and Vampires Suck.
Holy gods, you've got crap taste! Maybe, just maybe, Anger Management could be in the Top 40 comedies, but even that one isn't the greatest.