What is the average number of hashes it takes to mine bitcoins? I'm just curious about this. I'm not sure if the length of zeros in the hash result is directly proportional to the probability, or how to calculate this.
(Average hashing power of network per second between the last difficulty adjustment and the difficulty adjustment that came before it) * 600 

or (2^32 * difficulty)