updated count and flows.