Measuring cognitive activities in software engineering