I am just about a month into Mips assembly language. I have difficulty in designing an algorithm for counting the number of 1’s in a 32-bit number. I need help pls.

I am just about a month into Mips assembly language. I have difficulty in designing an algorithm for counting the number of 1’s in a 32-bit number. I need help pls.