Question: Rank of a polynomial matrix

I need a function  that computes the rank of a polynomial matrix over complex numbers. For example, for polys := [[x^2, 0, 0], [x^2, y^2, 0], [x^5, 0, 0]] I want to get an answer Rank(Matrix(polys))=3 and for polys := [[x^2, 0, 0], [0, y^2, 0], [x^2, y^2, 0]] I want to get 2. However, usual Rank from Linear algebra package gives wrong answers.
Does such a function exist in Maple?

Please Wait...