fn count_on(grid: &[Vec<bool>]) -> usize