st_dimensions function

get dimensions from stars object