need help to write a sumsquare function module and then rewrite that fuction module into an algorithm from this pseudocode.

count integer
square integer
sumsquare integer
count = 0
square = 1
do while count <= 2
count = count + 1
sumsquare = sumsquare + square
end do

this is not home work or stuff like that, this is a class work which i probably wont get an answer for in class any time soon.