new fix for using count with read_preference

my previous was actually not working.
It should be ok now.