added combined count and id search