If R is a relation from a fininte set A having m elements to a fininte set B having n elements, then the number of relations from A to B is