added global counts