Quantitative analysis by mass detection