Added count and prev_cnt for get_spaces()