how to use counting and expect / should