The maximum dimension of the inheriting algebra in perfect fluid space–times