Probing dark energy using its density instead of its equation of state