private int queryVectorCountById(long id) throws SQLException {
		PreparedStatement s = select_count_by_rowid_stmt.prepareIfNeeded(
			() -> db.prepareStatement("SELECT count FROM " + TABLE_NAME + " WHERE id = ?"));
		s.setLong(1, id);
		try (ResultSet rs = s.executeQuery()) {
			if (!rs.next()) {
				throw new SQLException("Bad vector table rowid");
			}
			return rs.getInt(1);
		}
	}
Get vector count which correspond to specified vector ID
@param id vector ID
@return vector count
@throws SQLException if error occurs
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/file/H2VectorTable.java