Extracting stats from HTML files almost works