Create B.cpp

counts NWD NWW