Counting number of <img> in a <div>

Counting number of <img> in a <div>

I've been fiddling with the .length function but can't get it to return anything other than the number of <img> in the document. Any push in the right direction would be greatly appreciated.