https://code.google.com/p/dynamic-loop-prediction/#Predicting_trip_counts