Constructing, Counting And Matching Combinatorial And Geometric Shapes