count fix

changed count to prevent whole search