Added support for counts with reverse related fields