a. How to sort and count containers