added way to get number of changes