int[] bytes = new int[9] { 123, 5, 65, 123, 6, 77, 123, 4, 101 }; int count = 1; for (int i = 1; i < bytes.Length; i++)