Add limit parameter to XXX_get() function
Fix bug in cs_hash_dup_count