count occurrences of word in file linux ignoring case

Shell
$ grep -o -i needs inspire.txt | wc -l
Source

Also in Shell: