Count to how many categories a post belongs to

Use get_the_terms() and count the resulting array:

print count( get_the_terms( $post->ID, 'category' ) ) . ' categories';