add pdf word counter