I need to pipe the output of one command to two other commands.

```
cat filename.txt | tail -n 1
cat filename.txt | wc -l

```

Since the file is huge I want to avoid reading it twice. I checked `tee` command but it redirects output to file which I don't want. There are many related posts but did not find anything relevant