added script for counting keyword connections