Add total function for differences count - #35