Array in functions

How to pass array in function

Example:

fn count(x:[u32]) -> u32 {
    x.len()
}
fn count(x: &[u32]) -> usize {
    x.len()
}

Thanks