Miami Heat v Boston CelticsBOSTON — “Man, it must be cool to be in this type of environment every night.”

On Friday night, the Boston Celtics, who are bad, played the Philadelphia 76ers, who are even more bad, and not in the cool, Shaft-kind of way, either. Sitting in an almost-full TD Garden that eventually filled to its 18,624 capacity, a Philly beat reporter couldn’t help but remark in amazement.

He is accustomed to sitting in the mostly empty Wells Fargo Center, home of the lowly Sixers. He has visited Atlanta, where the playoff-bound Hawks play before preseason-caliber crowds. Yet in Boston, where the Celtics’ greatest accomplishments are unlikely to come until this season has ended, fan support remains high.

This is going to sound corny, because it feels corny to write, but it’s past time to give a nod to Celtics fans, who have done something not many fans of teams in the Celtics’ position would do: They have shown up.

The Celtics’ sellout streak ended this season, which is not surprising. After five years of championship contention and one year of irrational optimism, the Celtics did not run from the term “rebuilding” the way some other teams have. Only 17,130 showed up to watch the Celtics top the Utah Jazz on Nov. 6, the first time in 289 games the Garden wasn’t sold out.

The next home game, however, the team announced a capacity crowd of 18,624. Three months later, in a Super Bowl Sunday matinee clash with the Orlando Magic, a legitimate sellout crowd showed up to watch two teams essentially grapple for position in the NBA draft lottery. All told, the Celtics have sold out 20 of their 39 home games, and the building has been more than 97 percent filled on average, despite the team having lost 54 games and counting.

Of course, attendance figures can be finagled. Recorded crowd noise allegedly can be pumped in. What can’t be faked is that, in the surprisingly frequent instances that the Celtics are locked in tight games, the energy from the crowd has been palpable.

“I’ve been blown away — blown away — by the fans,” Celtics coach Brad Stevens told the Herald. “I mean, we’re not a winning basketball team, and they’ve supported us like no tomorrow. The games have been unbelievable. The game against Chicago (on March 30) was so loud. It was a such a great environment. I had been here for a game in the playoffs, when you know it’s going to be good. But to be here every night, compared to some of these places we go to, not even close.”

Rest assured, Celtics fans. The players hear you. After dropping a home game in the midst of a road-heavy portion of the schedule earlier this season, forward Brandon Bass lamented being unable to win one “for our fans.” Paul Pierce and Kevin Garnett won’t be caught saying a bad thing about their former fans in Boston. Doc Rivers tearfully called the city “such a neat place” upon his return in December.

The Celtics have stored up a lot of good will over the last six years, but it can only last so long. Even the best fans can only take so much losing. But after an era that rekindled the winning tradition of past decades, Celtics fans did not immediately jump ship. They are being patient, giving Danny Ainge and Co. the benefit of the doubt, for now.

That’s a lot more than a lot of teams, in a lot of cities, get.