Compact floor or wall mounted water softener