Counting statistics of chaotic resonances at optical frequencies: Theory and experiments.