Statistics of charge transfer in a tunnel junction coupled to an oscillator