Fix a stupid logic error

Signed-off-by: Takashiro <takashiro@qq.com>
Sum up the number of items

Signed-off-by: Takashiro <takashiro@qq.com>