count = (function(){
let c = 0;
function getC(){
//console.log("dans get" + c);
return c;
}
function setC(v){
c = v;
}
function incC(){
c++;
}
return {
get : getC,
set : setC,
inc : incC,
}
})();
count.set(3);
console.log(count.get());
count.inc();
console.log(count.get());