Added function that returns the number of query log entries for a given
ip