random and count