Working BFSCount