Toddler telling when they have pooped

At what age was your toddler able to tell you they had pooped in their nappy/diaper? Any tips on encouraging her to be able to communicate this?