MATLAB: Count number 1 in the row

count

Dear all, I have this range:
x=[0 0 0 1 0 1 0 0]
I want to count number 1 in this row. Could you help me? Thanks.

Best Answer

Thanks everybody, I had my solution
count=sum(x)