get_the_terms() not returning expected result

If you are trying to get the number of terms your post have, then you should use wp_get_post_terms().

$sizeCount = count(wp_get_post_terms($post->ID, 'sizes'));
$colorCount = count(wp_get_post_terms($post->ID, 'colors'));

echo $sizeCount . ' ' . $colorCount;

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)