Origin of going "number 1" or "number 2" in the bathroom

I was wondering about the origin of using the terms "number one" and "number two" for going to the bathroom (for those unaware, number one is urinating, number two is defecating, at least in the US...