Basic idea: build a phylogenetic (gene) tree based on (ideally) neutral genomic samples. The shape of the tree (rate of branching per unit time) tells us whether the population is decreasing, increasing, or stable.
See Elliot and Mooers (n.d.) (intro, a little mathy, but very clear); Kuhner (2009) (intro journal article); Volz et al. (2009) (using coalescents for epidemics); Stadler et al. (2013) (ditto)