add while to for continuous count test