var nChanges = 0;
var regKey = /\$.*\$/;
umc.tools.forIn(vals, function(ikey) {
if (!regKey.test(ikey)) {
if (!regKey.test(ikey) || ikey == '$options$') {
// key does not start and end with '$' and is thus a regular key
++nChanges;
}