Fix stash count in cases where there is no stash file