Counting the occurrences of concurrency patterns (Class
Quantify2Atomicity);
Integrate this function into AllInOne class.