I'll try but I have to make some assumptions: Vf of each LED is 1.6V, you want them to pass 20mA, your AC voltage is 230V and your AC frequency is 50Hz. If yours is different, just change the figures and recalculate.
Say you have 10 LEDs in series, the total voltage across them will be 10 x 1.6 = 16V.
The voltage you have to drop is 230 - 16 = 214V.
The current through the LEDs is 0.02A so the resistance needed to drop 214V at 0.02A is (R = V/I) 214/0.02 = 10,700 Ohms.
So the total resistance in series has to be 10,700 Ohms but that is partly from a resistor and partly from the reactance of a capacitor. The resistor will generate heat so we want to keep that part of the total relatively small. Capacitors come in fixed values so the best strategy is to find the nearest standard capacitor value that gives a reactance less than needed then make up the difference with a real resistor.
The frequency of the current through the capacitor is twice the AC frequency because the bridge rectifier is conducting on both polarities of each cycle so the calculation is based on 50 x 2 = 100Hz.
The ideal capacitor value with a reactance of 10,700 Ohms at 100Hz is 1/(2*pi*100*10,700) = 148.74nF.
The nearest standard value with a lower reactance (higher capcitance) is 150nF (0.15uF) which has a reactance of 10,610 Ohms so you make up the difference with say 100 Ohms of resistor.
Brian.