Circuit rank of a graph