1use crate::{args::Count, utils::cli_result::CliResult};
2use std::io::{stdin, BufRead};
3
4impl Count {
5 pub fn io_run(&self) -> CliResult {
6 let mut n = stdin().lock().lines().count();
8
9 if !self.no_header && n > 0 {
10 n -= 1;
11 }
12
13 println!("{n}");
14
15 Ok(())
16 }
17}