Question: I am trying to run a simple SQL(native) query within a hibernate application.

```
SELECT COUNT(*) from users

```

The answer to the select may be saved into a integer.
How can i do this without having to create a model class in Hibernate?

Answer: 
```
int count=0;    
Resultset rs=Statement.ExecuteQuery("SELECT COUNT(*) as count from users");
    if(rs.next()){
     count=rs.getInt("count");
    }

System.out.println(count);

```
```
Resultset rs=Statement.ExecuteQuery("SELECT COUNT(*) as number from users");
while(rs.next()){
 Long count =rs.getLong("number");
    }

```