#!/bin/sh detex writeup.tex | tail -c +85 | wc -w # using the tail to cut of the stuff detex cant handle