Converts a Maybe to a number, defaulting to 0