Let $p$ and $q$ be positive integers such that \[\frac{5}{9} < \frac{p}{q} < \frac{4}{7}\] and $q$ is as small as possible. Find the value of $q-p$.

Let's think step by step and output the final answer within \boxed{}.
user