Added some includes to test performance.
Added count check.