This repository contains code to estimate sample size needed to compare dynamic treatment regimens using longitudinal count outcomes with Excess Zeros from a Sequential Multiple Assignment Randomized Trial (SMART). Accompanying write-up describing the approach implemented in this repository is available at https://arxiv.org/abs/2104.00108