Layer-Number-Dependent Magnetism and Anomalous Hall Effect in van der Waals Ferromagnet Fe5GeTe2.