seperate elements of a file

i want to write a script in Bash Shell that accept a list of files.an example of file is

4334:234
322.345:32
234:3452 e.t.c
each file only contain lines like num1:num2

i want to count the lines of this file and find the summary of X=4334+322.345+234 and Y=234+32+3452

awk -F":" '{ x+=$1; y+=$2 }END{ print x, y}' filename