An introduction to quantitative methods for historians