pub fn element_count(shape: &[usize]) -> usize
Return the total number of elements for a given shape.