The dimension of matrices (matrix pencils) with given Jordan (Kronecker) canonical forms

The dimension of matrices (matrix pencils) with given Jordan (Kronecker) canonical forms