Read up on your diodes, LEDs, voltage drops, resistors, and just basic electronics in general.
You've got one resistor per LED. Assuming 3.5v drop per LED, 130 ohm is a decent starting point with 6v input, gives about 20mA per LED, and 6 parts.
Take that same 6v, change it to 12v, put 3 LEDs in series, with a 75 ohm resistor... 3 LEDs, 1 resistor, 12v in, 10.5v drop across 3 LEDs, 1 75 ohm resistor, 4 parts.
Double it again to 24v, 6 LEDs in series with a 150 resistor, 6 LEDs, 1 resistor, 24v input, 21v drop across 6 LEDs, 1 150 ohm resistor, 7 parts...
And so on, and so on...