Work out how many baseboard or skirting pieces to buy from the room perimeter, minus doors, with an allowance for corner cuts and the finish nails into studs.