public static void main(String[] args)
  {
			factory = Persistence.createEntityManagerFactory(PERSISTANCE_UNIT_NAME);
			EntityManager manager = factory.createEntityManager();
			
			EntityTransaction transaction =manager.getTransaction();
			TypedQuery<Object> query = manager.createQuery("SELECT COUNT(c) FROM Audience c where c.userName='Lpriya'", Object.class);
			transaction.begin();
			List<Object> result = query.getResultList();
			transaction.commit();

			for (Object data : result)
				System.out.println(data);
			transaction.begin();
			transaction.commit();
			LGui = new LoginGUI();
		    LGui.showGUI();
  
  }