Fixed count error in randomExample