Implement the number() and dupD() methods.