counting diff in links, extlinks, refs and templates