Counting pseudo-holomorphic submanifolds in dimension 4