Fixed # of cards badge in list header

wrong value was displayed for empty lists