Quantifying entanglement resources