fixed get_count