Added -entryCount for testing trimming.
Added some tests for trimming.
Trim trim trim