Ignore emacs backups
Add sign counting for future use in type B length function.