CHANGED GRAPH COUNTS

Changed the algo for counting, its now better, key change