Bacteria can grow and divide very rapidly, every 20 minutes for some species under ideal conditions, or as slowly as every 100 years for bacteria in deep underground environments. The generation time, or doubling time, is the amount of time it takes for the number of bacterial cells to double in a culture. Optical density measurements using spectrophotometry is a common way to indirectly measure bacterial growth and calculate doubling times by tracking increases in turbidity over time. Direct microscopic counting and viability assays that measure colony forming units are other methods to directly measure bacterial cell numbers.