The odd couple: Boltzmann, Planck and the application of statistics to physics (1900-1913)