# JavaScript, 17 bytes

    a=!![],a++,a+=![]

Edit : Actually output "2", should output 3 when the good char is modified

(not sure if the console.log was required or not...)

<https://jsconsole.com/>