Supporters cheer as Democratic presidential candidate Bernie Sanders addresses them during a rally at Prospect Park on Sunday in Brooklyn. (Ricky Carioti/The Washington Post)

NEW YORK — Democratic presidential hopeful Bernie Sanders’s campaign said his rally on Sunday in Brooklyn’s Prospect Park drew more than 28,000 people, which would make it the largest such event for a candidate who routinely generates large, boisterous crowds.

The rally took place on the final weekend before a crucial New York primary on Tuesday for Sanders, who is making a spirited but uphill bid to catch Hillary Clinton in the race for the Democratic nomination. Polls have showed Clinton with a double-digit lead.

“In case you haven’t noticed, there are a lot of people here," Sanders, who was born in Brooklyn, said at the outset of his remarks.

The largest crowd count for the senator from Vermont before Sunday had come at a August rally in Portland, Ore. The staff at the venue estimated that 28,000 people attended that event.

Actor Danny DeVito pumped up the thousands of Sanders's supporters in Brooklyn's Prospect Park on April 17. "We feel the Bern!" Devito said in front of an estimated 28,000 people days before New York's primary. (Reuters)

Aides to Sanders said Sunday’s crowd totaled 28,356. The figure was attributed to a representative from a company that helped produce the event. Aides said the company also works for Clinton’s campaign.

Michael Briggs, a Sanders spokesman, said the count included about 26,000 people who made it into a large cordoned-off area as well as some who watched from outside the perimeter.