San Francisco 49ers defense ranked No 2 in the NFL in points allowed during the regular season