label:add computeStringNumLines method