public int getNbLecture(int row)
	{
		int cpt = -1;
		try {
			Class.forName("org.sqlite.JDBC");
		} catch (ClassNotFoundException e1) {
			e1.printStackTrace();
		}
		Connection connection = null;
		try{

			// create a database connection
			connection = DriverManager.getConnection("jdbc:sqlite:" + "ressources/mp3database.sqlite");
			Statement statement = connection.createStatement();
			statement.setQueryTimeout(30);  // set timeout to 30 sec.
			ResultSet rs = statement.executeQuery("select * from musiques WHERE rowid = '"+row+"' ");
			while(true)
			{
				if(rs.next())
				{
					try {
						cpt = Integer.parseInt(rs.getString("nbEcoutes"));
					} catch (SQLException e) {
						e.printStackTrace();
					}
				}
				else
				{
					try
					{
						if(connection != null){
							connection.close();
						}
					}
					catch(SQLException e){
						System.err.println(e);
					}
					break;
				}
			}
		}
		catch(SQLException e)
		{
			// if the error message is "out of memory", 
			// it probably means no database file is found
			System.err.println(e.getMessage());
		}
		finally
		{
			try
			{
				if(connection != null)
					connection.close();
			}
			catch(SQLException e){System.err.println(e);}
		}
		return cpt;
	}