A convenience function to compute element counts from a data domain based on execution domain element counts. Current limitation is that it will only return values for zero- or one-dimensional domains, or expressions. If an expression is invalid, or the dimension counts are greater than one, and empty array is returned.