Count bipartite + connected graph