fix install counting for stats (bug 833880)