Full counting statistics for the number of electrons in a quantum dot