added word and fig count to templates