you are not setting the title attribute but getting a value of attribute with name: 'title' + iOaCount+'This is the hover-over text'
you are missing a comma. change you code to:
$("#assignment").attr('title', iOaCount + 'This is the hover-over text');
if the function is used with one parameter then it retrieves the attribute value. if with two parameters than it sets the value of the attribute with the second parameter.
You can see that in jquery documenation: jquery attr