Way too many to count. An exact count would be near impossible unless you were to watch through every episode with a counter and click it every time he said D'oh. Then, there are some clip shows with sequences of D'ohs. Then there's the movie and comics, and other media. In other words, it's impossible to get an exact number.