Here's why:
* Countable nouns can be singular or plural. You can have one piece of homework, two pieces of homework, and so on.
* Uncountable nouns represent things that cannot be counted individually. Examples include water, information, and advice.
Since you can have multiple pieces of homework, it is countable.