corrected count(), parameter search is now optional