globalintegers = Symbol /@ Select[Names["Global`*"], IntegerQ[Symbol[#]] &]; Print [ globalintegers //Length, " global integer(s) and their sum is: ", globalintegers // Total]