Realization and counting problems for planar structures