Given a set Y of decreasing plane trees and a permutation π, how many trees in Y have π as their postorder? Using combinatorial and geometric constructions, we provide a method for answering this question for certain sets Y and all permutations π. We then provide applications of our results to the study of the deterministic stack-sorting algorithm.