Foundations of measurement