Formula For Finding Number Of Relations