making numworks return an int