added object for counting the number of completed ajax calls