add get_and_remove count support