Added function to get amount of live neighbours

plus the test case