Y -proper graded cocharacters and codimensions of upper triangular matrices of size 2, 3, 4