Count same-byte occurrences within binary files