How much salt?
The primary electrolyte lost through sweat is sodium, chloride is also lost in roughly equal proportions. Potassium, magnesium, and calcium are also lost, but to a much lesser extent.
Sweat rate
Without proper testing, your sweat rate is a guess — salt stains on your jersey are not necessarily an indicator of having saltier sweat, and the salt content of your sweat may also vary based on conditions.
General guidelines
Most nutritionist guidelines recommend 500-1000mg per hour during endurance exercise. For lower intensity in mild conditions, 300-500mg and for hard efforts in heat or humidity, upwards of 1500mg per hour.
Some personal experiementation is helpful. Start at 500–700mg and look for signs you've had too few electrolytes, such as muscle cramps and headaches after exercise.
Testing your sweat rate
Companies like Gatorade and Nix sell patches that can be used at home to test your sweat rate. Wearing these during workouts and completing them under a variety of conditions can give you a better starting point. Sports labs and companies like Precision Hydration also offer sweat rate testing.