TRUNK-2999 Investigate replacing concept word with full text search

rowCount() returns at least Number, it can be Long or Integer... so we can't cast to Long if it's Integer and vice versa. Number.longValue is the safe option.