function y = exp1

persistent x

if(isempty(x))
    x=0;
else
    x = x+1;
end

y=x;

