[fix] Bug fix for #87 with count() and has()