Zend certified PHP/Magento developer

Get the total size of all files of a given extension

I’m trying to get the total size of all the JPEGs in a particular folder, but no amount of combinations of options while piping to du seems to make this work:

find -type f -iname "*.jpg" | du -sch
166G    .
166G    total

All of them print the total of every file in the directory.

How do I get only the total file size of the files that I’m passing to du?