Linear spaces on hypersurfaces over number fields