cleaned up, added count back in, TIME_SLEEP constant added