Title: Sorting and counting shapes