pub fn count_byte(data: &[u8], needle: u8) -> usize
Count the number of occurrences of needle in data.
needle
data
On aarch64, uses NEON intrinsics for fast counting.