title: number of connected users in a specific database in python
body: <p>I am trying to find how many users are conected to a specific database.
  I used a counter that count every time that there is a new created connection.
  the connection happens when the user enter a right username and password</p>
  
  <pre><code>counter=0
  Flag = FindConnection(username , password) 
  if Flag == True:
     counter +=1
  </code></pre>
  
  <p>FindConnection function returns true and make connection if the username and password are right, otherwise it returns false.
  Is there any other way to count the number of users???</p>