added global counts for advanced aws example