add return_count for csb interface