“count_states” returns the number of states in the selection.
count_states
frame | cmd.count_states | commands