\documentclass{article}

\usepackage{countwords}
