There were a bug with getCount()