Closets do count in square footage, so long as they meet requirements applied to other areas of the house.