> I am doing something wrong. Can anyone help me out here?
You never modify the value of 'count' and so you're always passing zero in
as the first argument of Bob#load. Try replacing this line in the Thread
block:
b.load(count, out[i])
with this:
b.load(i, out[i])
and see if you get the expected result.
Hope this helps,
Lyle