rename getNum as size()